home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1997 May
/
EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso
/
earcd
/
misc
/
emu
/
arosdev.lha
/
AROS
/
workbench
/
libs
/
makefile
< prev
Wrap
Makefile
|
1997-02-03
|
1KB
|
50 lines
# $Id: makefile,v 1.14 1997/02/03 18:36:01 digulla Exp $
TOP=../..
include $(TOP)/config/make.cfg
ifeq ($(FLAVOUR),native)
SUBDIRS=
else
SUBDIRS=icon iffparse
endif
OBJDIR = $(GENDIR)/libs
FILES = dummy
all: setup $(foreach f,$(FILES),$(SLIBDIR)/$f.library)
@for dir in $(SUBDIRS) ; do \
echo "Making all in $(CURDIR)/$$dir..." ; \
if ( cd $$dir ; \
$(MAKE) $(MFLAGS) TOP="$(TOP)/.." CURDIR="$(CURDIR)/$$dir" \
all ) ; \
then echo -n ; else exit 1 ; fi ; \
done
setup :
@if [ ! -d $(SLIBDIR) ]; then $(MKDIR) $(SLIBDIR) ; else true ; fi
@if [ ! -d $(OBJDIR) ]; then $(MKDIR) $(OBJDIR) ; else true ; fi
clean:
-$(RM) $(SLIBDIR)/dummy.library $(OBJDIR)
@for dir in $(SUBDIRS) ; do \
echo "Making all in $(CURDIR)/$$dir..." ; \
( cd $$dir ; \
$(MAKE) $(MFLAGS) TOP="$(TOP)/.." CURDIR="$(CURDIR)/$$dir" \
clean ) ; \
done
$(SLIBDIR)/%.library: %lib.o
$(CC) $(ILDFLAGS) $^ -o $@
$(OBJDIR)/%.o: %.c
$(CC) $(CCFLAGS) -I $(TOP) $< -c -o $@
$(OBJDIR)/%.d: %.c
@if [ ! -d $(@D) ]; then $(MKDIR) $(@D) ; else true ; fi
$(MKDEPEND) -f- -p$(@D)/ -- $(CFLAGS) -- $^ > $@
ifneq ($(TARGET),clean)
include $(foreach f,$(FILES),$(OBJDIR)/$(f)lib.d)
endif